import service from "@/service/http.interceptor";

/**
 * 根据类型获取菜单
 */
export const getRuleByType = (params) => {
	return service.request({
		method: 'get',
		url: '/shop/platform/rule/c/getRuleByType',
		params,
		custom: {
			loading: true
		}
	})
}